package com.guodi.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.guodi.core.mp.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="机构")
@TableName("SYS_ORG")
public class Org extends BaseEntity {

    @ApiModelProperty("父id")
    private Long parentId;

    @ApiModelProperty("名称")
    private String orgName;

    @ApiModelProperty("编码")
    private String orgCode;

    @ApiModelProperty("行政区划编码")
    private String regionCode;

    @ApiModelProperty("负责人id")
    private Long leader;

    @ApiModelProperty("机构类型 0:单位 1:部门")
    private Integer category;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态 0:未启用 1:已启用")
    private Integer status;

    @ApiModelProperty("单位id")
    private Long unitId;

}
